<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/LICENSE-M1.txt
 *
 * @category   AW
 * @package    AW_Mobile
 * @copyright  Copyright (c) 2010-2011 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/LICENSE-M1.txt
 */
?>
<?php
/**
 * Category left navigation
 *
 * @see Mage_Catalog_Block_Navigation
 */
?>
<?php $_categories=$this->getCurrentChildCategories() ?>
<?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?>
<?php if($_count): ?>
<div class="box layered-nav">
	<div class="narrow-by">
		<dl id="narrow-by-list">
			<dd>
				<ol>
				<?php foreach ($_categories as $_category): ?>
					<?php if($_category->getIsActive()): ?>
					<li>
						<a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="active"<?php endif ?>><?php echo $this->htmlEscape($_category->getName()) ?> (<?php echo $_category->getProductCount() ?>)</a>
					</li>
					<?php endif; ?>
				<?php endforeach ?>
				</ol>
			</dd>
		</dl><script type="text/javascript">decorateDataList('narrow-by-list')</script>
    </div>
</div>
<?php endif; ?>
<!-- [ends] .browse-by // -->
<script type="text/javascript">
$j(document).ready(function(){
	$j('.layered-nav li a').each(function(){
		if($j(this).html().indexOf('Clip In Hair Extensions')>-1 || $j(this).html().indexOf('Micro Loop / Rings')>-1 || $j(this).html().indexOf('Pre-Bonded / Fusion')>-1)
			$j(this).append('<img src="<?php echo $this->getSkinUrl('images/hot.gif') ?>" style="margin-left:5px;"/>');
	});
});
</script>